using System;
using System.Collections.Generic;
using System.Text;
namespace BLL.BusinessLayer
{
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
	[Serializable]
	public class ClsSuppliers: BusinessObjectBase
	{

		public ClsSuppliers() {}

		#region InnerClass
		public enum ClsSuppliersFields
		{
			SupplierID,
			SupplierName
		}
		#endregion

		#region Data Members

			int _supplierID;
			string _supplierName;

		#endregion

		#region Properties

		public int  SupplierID
		{
			 get { return _supplierID; }
			 set
			 {
				 if (_supplierID != value)
				 {
					_supplierID = value;
					 PropertyHasChanged("SupplierID");
				 }
			 }
		}

		public string  SupplierName
		{
			 get { return _supplierName; }
			 set
			 {
				 if (_supplierName != value)
				 {
					_supplierName = value;
					 PropertyHasChanged("SupplierName");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("SupplierID", "SupplierID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("SupplierName", "SupplierName",100));
		}

		#endregion

	}
}
